﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace EWS
{
    public class CompareStatus:IComparer
    {

        int IComparer.Compare(object obj1, object obj2)
            {
                    
          
            PatientList.PLItem item1 = (PatientList.PLItem)obj1;
            PatientList.PLItem item2 = (PatientList.PLItem)obj2;
            int i =  0;
            if (item1.Data.getStatus()>item2.Data.getStatus())
            {i = -1;}
            if(item1.Data.getStatus()<item2.Data.getStatus())
            {i = 1;}
            return i;//return (((IComparable)emp1).CompareTo(obj2));
        }
    }
}
